package com.example.helloandroid;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;

import android.app.Activity;
import android.os.Bundle;

public class HelloAndroid extends MapActivity {
	MapController mControl;
	GeoPoint GeoP;
    /** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.main);
	    MapView mapView = (MapView) findViewById(R.id.mapview);
	    mapView.displayZoomControls(true);
	    mapView.setBuiltInZoomControls(true);
	    
	    double lat = 40.8;
	    double longi = -96.666;
	    GeoP = new GeoPoint((int)(lat *1E6),(int)(longi *1E6));
	    mControl = mapView.getController();
	    mControl.animateTo(GeoP);
	    mControl.setZoom(13);
	    
	}
	@Override
	protected boolean isRouteDisplayed() {
	    return false;
	}
}